import http from '@/utils/request'

//获取首页新闻数据
export const indexNews = (pageQueryParams: any) => {
  return http.request({
    url: '/api/v1/front/index/news',
    method: 'get',
    params: pageQueryParams,
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

//获取新闻分页数据
export const newsPage = (pageQueryParams: any) => {
  return http.request({
    url: '/api/v1/front/news/page',
    method: 'get',
    params: pageQueryParams,
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

//获取新闻分页数据
export const news = (id: any) => {
  return http.request({
    url: '/api/v1/front/news/getNewsForm',
    method: 'get',
    params: id,
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

//获取课程预约分页数据
export const courseReservePage = (pageQueryParams: any) => {
  return http.request({
    url: '/api/v1/front/profile/myCourseReserve',
    method: 'get',
    params: pageQueryParams,
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
